Kinetis SDK API Reference Manual  1.0.0-beta
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
fsl_smc_hal.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <assert.h>
#include "fsl_device_registers.h"
#include "fsl_smc_features.h"

Data Structures

struct  smc_power_mode_protection_config_t
 Power mode protection configuration. More...
 

Enumerations

enum  power_mode_stat_t {
  kStatRun = 0x01,
  kStatStop = 0x02,
  kStatVlpr = 0x04,
  kStatVlpw = 0x08,
  kStatVlps = 0x10,
  kStatLls = 0x20,
  kStatVlls = 0x40,
  kStatHsrun = 0x80
}
 Power Modes in PMSTAT. More...
 
enum  power_modes_protect_t {
  kAllowHsrun,
  kAllowVlp,
  kAllowLls,
  kAllowVlls,
  kAllowMax
}
 Power Modes Protection. More...
 
enum  smc_run_mode_t {
  kSmcRun,
  kSmcReservedRun,
  kSmcVlpr,
  kSmcHsrun
}
 Run mode definition. More...
 
enum  smc_stop_mode_t {
  kSmcStop,
  kSmcReservedStop1,
  kSmcVlps,
  kSmcLls,
  kSmcVlls
}
 Stop mode definition. More...
 
enum  smc_stop_submode_t {
  kSmcStopSub0,
  kSmcStopSub1,
  kSmcStopSub2,
  kSmcStopSub3
}
 VLLS/LLS stop sub mode definition.
 
enum  smc_lpwui_option_t {
  kSmcLpwuiEnabled,
  kSmcLpwuiDisabled
}
 Low Power Wake Up on Interrupt option. More...
 
enum  smc_pstop_option_t {
  kSmcPstopStop,
  kSmcPstopStop1,
  kSmcPstopStop2,
  kSmcPstopReserved
}
 Partial STOP option. More...
 
enum  smc_por_option_t {
  kSmcPorEnabled,
  kSmcPorDisabled
}
 POR option. More...
 
enum  smc_lpo_option_t {
  kSmcLpoEnabled,
  kSmcLpoDisabled
}
 LPO power option. More...
 
enum  smc_power_options_t {
  kSmcOptionLpwui,
  kSmcOptionPropo
}
 Power mode control options. More...
 

Functions

System mode controller APIs
void smc_hal_config_power_mode_protection (smc_power_mode_protection_config_t *protectConfig)
 Configures all power mode protection settings. More...
 
void smc_hal_set_power_mode_protection (power_modes_protect_t protect, bool allow)
 Configures the individual power mode protection settings. More...
 
bool smc_hal_get_power_mode_protection (power_modes_protect_t protect)
 Gets the the current power mode protection setting. More...
 
void smc_hal_power_mode_config_run (smc_run_mode_t runMode)
 Configures the the RUN mode control setting. More...
 
smc_run_mode_t smc_hal_power_mode_get_run_config (void)
 Gets the current RUN mode configuration setting. More...
 
void smc_hal_power_mode_config_stop (smc_stop_mode_t stopMode)
 Configures the STOP mode control setting. More...
 
smc_stop_mode_t smc_hal_power_mode_get_stop_config (void)
 Gets the current STOP mode control settings. More...
 
void smc_hal_power_mode_config_stop_submode (smc_stop_submode_t stopSubMode)
 Configures the stop sub mode control setting. More...
 
smc_stop_submode_t smc_hal_power_mode_get_stop_submode_config (void)
 Gets the current stop submode configuration settings. More...
 
uint8_t smc_hal_get_power_mode_stat (void)
 Gets the current power mode stat. More...